import request from '@/utils/request'

// 查询产品详情列表
export function listProdinfo(query) {
  return request({
    url: '/system/prodinfo/list',
    method: 'get',
    params: query
  })
}

// 查询产品详情详细
export function getProdinfo(id) {
  return request({
    url: '/system/prodinfo/' + id,
    method: 'get'
  })
}

// 新增产品详情
export function addProdinfo(data) {
  return request({
    url: '/system/prodinfo',
    method: 'post',
    data: data
  })
}

// 修改产品详情
export function updateProdinfo(data) {
  return request({
    url: '/system/prodinfo',
    method: 'put',
    data: data
  })
}

// 删除产品详情
export function delProdinfo(id) {
  return request({
    url: '/system/prodinfo/' + id,
    method: 'delete'
  })
}
